package com.spring.springboot.user2.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import lombok.Data;

/**
*@author LSY
*Time: 2018年12月18日下午5:49:44
*
*
*/
@Entity
@Table(name = "user2")
public class User2Entity  implements Serializable{

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "username")
	private String name;
	@Column(name = "age")
	private int age; 
}
